Hierarchical films of layered double hydroxides by using a sol-gel process and their high adaptability in water treatment.