Big data analytics for demand response in smart grids