Acid catalysed Beckmann rearrangement: a comparison between homogeneous and heterogeneous catalytic systems