Battery energy storage frequency and peak regulation