High Performance Silicon Imaging: Fundamentals and Applications of CMOS and CCD sensors