Decision tree-based prediction approach for improving stable energy management in smart grids