Structural and optical properties of Mg‐doped ZnO thin films prepared by a modified Pechini method