Effect of substrate on the structural transformation and optical properties of Zn1 − xMgxO thin films grown by pulsed laser deposition