Exploring the impacts of nanoconfinement using nuclear magnetic resonance (NMR) spectroscopy