Electrochemical and photoelectrochemical studies of oxygen reduction on metal phthalocyanines and porphyrins