Doping profile optimization in semiconductor design