Physics and machine learning based approaches to model energy storage systems