Change in the Acid-Base Equilibrium in the Medium on Photoreduction and Photooxidation of Chlorophyll and Its Analogs