Modeling Nanoscale Ion Diffusion In Block Copolyelectrolytes And Ligand Passivation-Enhanced Surface Stability Of Hybrid Perovskites