Dimensioning battery energy storage systems for peak shaving based on a real-time control algorithm. (15th December 2020)