Prevention of diffusion-induced defects in the fabrication of diffused electroluminescent GaP devices