Functionalised hexagonal boron nitride for energy conversion and storage