Synthesis of Mg(OH)2, MgO, and Mg nanoparticles using laser ablation of magnesium in water and solvents