InP/InGaAsP double-heterostructure optoelectronic switch