Kinetically controlled assembly of nitrogen-doped invaginated carbon nanospheres with tunable mesopores