Ultimate limits of exoplanet spectroscopy: A quantum approach