Synthesis of mesoporous composite materials of nitrogen-doped carbon and silica using a reactive surfactant approach