Rich interfacial chemistry and properties of carbon-doped hexagonal boron nitride nanosheets revealed by electronic structure calculations