Precisely controlled resorcinol-formaldehyde resin coating for fabricating core-shell, hollow, and yolk-shell carbon nanostructures.