Simultaneous pyrolytic deposition of carbon and boron