Structure, microstructure and optical properties of Sn-doped ZnO thin films