Novel carbon materials modified with heteroatoms as metal-free catalyst and metal catalyst support