CCD sensors were once all the rage in digital photography, but they have since been replaced by CMOS technology. Why did the industry end up switching?