Invia SMS: Improvement of optical properties of Mg doped ZnO by nanostructuring for applications in optoelectronics