OPTIMIZING ENERGY STORAGE PARTICIPATION IN PRIMARY FREQUENCY