Trapping analysis and countermeasure for arsenic auto-doping in 40-nm epitaxial diode arrays and CMOS integration