Modelling and Simulation of Energy Storage System for Frequency Stability Studies