The study of electronic and optical properties of perovskites CH3NH3PbCl3 and CH3NH3PbBr3 using first-principle | Synapse