Soft-templated synthesis of mesoporous carbon nanospheres and hollow carbon nanofibers