Text this: Mathematical modelling, design, and optimization of electrochemical capacitor cells