Synthesis of dopant-free polymers for perovskite solar cells