Synthesis of Magnesium-Doped ZnO Rods via Hydrothermal Method: A Study of the Structural and Optical Properties