Photoelectrochemical characterization of p-type CH3NH3PM3 perovskite