Synthesis, modification, and characterization of layered 2D materials by solid-state NMR spectroscopy