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.
warnings added and instruction for the user to remove the element added