The influence of water on the photochemical reaction cycle of proteorhodopsin at low and high pH