A hybrid model for forecasting the consumption of electrical energy in a smart grid