Diagnosis of mildly relativistic electron distributions by cyclotron emission