Modeling and control strategy of battery energy storage system for primary frequency regulation