Fabrication of ZnO/Zn1-xMgxO heterostructure thin films by sol-gel spin-coating method