Preparation of high quality Mg doped ZnO nanorod arrays with enhanced optical properties by MgO passivation