The photocatalytic activity of sprayed Zn1 − xMgxO thin films