Solid-state NMR characterization of the structure and thermal stability of hybrid organic–inorganic compounds based on a HLaNb2O7Dion–Jacobson layered perovskite