Investigating the Beckmann rearrangement reaction using porous solids as catalysts by solid state NMR and theoretical calculations.