Covalent coupling via dehalogenation on Ni(111) supported boron nitride and graphene.