Finite-time thermodynamic optimal control of energy storage devices: a study of vanadium redox flow batteries | Synapse