Frequency control via demand response in smart grid