Multimodal operation of battery storage for grid services and ancillary services