The influence of pH on charged porphyrins studied by fluorescence and photoacoustic spectroscopy