Space charge acceleration of ions at electron cyclotron resonance