Imaging with electrons : unraveling nanoscale structure-function relations in energy storage & quantum optical materials