Trapping charges at grain boundaries and degradation of CH3NH3Pb(I1−xBrx)3 perovskite solar cells