Thermolytic synthesis of graphitic boron carbon nitride from an ionic liquid precursor: mechanism, structure analysis and electronic properties