2D and 3D CMOS MAPS with high performance pixel-level signal processing