Combined solid-state NMR, FT-IR and computational studies on layered and porous materials