How much energy storage should be allocated for frequency regulation and peak regulation