Growth and characterization of self-assembled Cd1−xMgxO (0 ≤ x ≤ 1) nanoparticles on r-sapphire substrates