Formation of boron nitride and boron carbide composite by nitrogen implantation at elevated temperature