A new approach for the spectroscopic detection of different pH-values