The design of single-junction GaAs and dual-junction GaAs/Si in the presence of threading dislocation density