Line defects and induced doping effects in graphene, hexagonal boron nitride and hybrid BNC.