Text this: Adsorptive removal of phosphate and nitrate by layered double hydroxides through the memory effect and in situ synthesis