Developing scalable processing techniques for perovskite solar cells using X-ray scattering