Diagnostics of the state of health and aging prognosis of second-life lithium-ion battery packs for the systemic study of energy microgrids | Synapse