Nonaqueous Electrolyte Design For Energy Storage And Electrosynthesis