added possibility to use input energies given in eV