Combining electroanalysis and nanoscale characterization to understand battery electrolytes