Synthesis of Zn1−xMgxO alloyed nanostructures and the crystal evolution in annealing process