Effects of Mg-contents and substrate parameters on structure and optical properties of Mg-doped ZnO nanorods fabricated by hydrothermal method