Designing a new generalized battery management system | Synapse