Chemical functionalization of carbon-based materials through reaction with benzyne. A comparison between the [2+2] and [4+2] cycloaddition pathways.