magnesium and water balanced equation