Demand response policies for the implementation of smart grids