Gravar-mail: Flexibility management model of home appliances to support DSO requests in smart grids