Modelling And Simulation Of Energy Storage System For Frequency Stability Studies