Hot carrier diffusion induced instabilities of electromagnetic waves in plasmas and semiconductors