General synthesis of single-atom catalysts for hydrogen evolution reactions and room-temperature Na-S batteries.