Time of flight measurements of energy and density of laser induced Mg plasma ions and investigation of ablated surface morphology