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.