Electrical and optical degradation study of methylammonium-based perovskite materials under ambient conditions