Tailoring Hierarchically Porous Nitrogen-, Sulfur-Codoped Carbon for High-Performance Supercapacitors and Oxygen Reduction.