Structural and optical properties of Zn1-xMgxO thin films deposited by ultrasonic spray pyrolysis