Polymer-templated nucleation and crystal growth of perovskite films for solar cells with efficiency > 21 %