Electron and ion energies in plasmas generated by the electron‐cyclotron‐resonance mechanism