Structure and luminescence of (Zn,Mg)O:Zn2+ nanophosphor films