A comparison of the photoluminescent and electroluminescent spectra of Er3+in ZnSe