Increasing stability, efficiency, and fundamental understanding of lithium-mediated electrochemical nitrogen reduction