A unified model to optimize configuration of battery energy storage systems with multiple types of batteries. (1st June 2019)