Modelling and performance analysis of an integrated control system for providing ancillary services using a BESS