Generation of energetic electrons by electron cyclotron heating in a magnetic mirror field