Reaction with organic halides as a general method for the covalent functionalization of nanosheets of 2D chalcogenides and related materials