Adaptive control and dynamic demand response for the stabilization of grid frequency