Design optimisation and diagnostics for lithium-ion battery fast charging