Operando studies of functional materials for energy storage and conversion