Replace quantities with pint
Fixed energy to wavelength conversion.