Synthesis and characterization of sol–gel Mg/Al and Ni/Al layered double hydroxides and comparison with co-precipitated samples