An efficient route towards the covalent functionalization of single walled carbon nanotubes