Synthesis of MgFe layered double hydroxides for water treatment