Optimization of Doping CdTe with Group-V Elements: A First-Principles Study