Fabrication of CMOS retrograde wells by doping compensation with ion implantation