Derivatization of diamondoids for functional applications