Optimization of heterostructure design for switching pHEMT transistors