EHN: add error for get_line_intensity

For get_line_intensity, add a ``ValueError`` when the border of the integral is outside the energy range.
Wouldn't it be better to use `warnings.warn` instead of `print` for this?