Investigation of hot electrons in electron‐cyclotron‐resonance ion sources