Sulfur-nitrogen co-doped three-dimensional carbon foams with hierarchical pore structures as efficient metal-free electrocatalysts for oxygen reduction reactions.