Comparison of incoherent scatter radar and photometric measurements of the energy distribution of auroral electrons