Photonic pressure measurements using absorption spectroscopy and Fabry-Pérot refractometry