Active pixel sensors with enhanced pixel-level analog and digital functionalities in a 2-tier 3D CMOS technology