CMOS Active Pixel Sensors: Design For Scientific Applications