The Role of Covalent Functionalization in the Thermal Stability and Decomposition of Hybrid Layered Hydroxides