Fabrication of sulfur-impregnated porous carbon nanostructured electrodes via dual-mode activation for lithium–sulfur batteries