On the determination of auroral electron energies and fluxes from optical spectral measurements