Understanding the interactions of 2D materials and guest species for quantum and energy applications