Porous nanocomposite materials prepared by soft chemistry