Photoinduced pH drops in water