Enhanced optical properties of Cd–Mg-co-doped ZnO nanoparticles induced by low crystal structure distortion