Modulation of electromagnetic electron cyclotron waves in the presence of nonisothermal electrons in plasmas