Calculation of the state of safety (SOS) for lithium ion batteries | Synapse