Degradation mechanism of CH3NH3PbI3 and enhancing its optical absorption through variety of doping sites