Energy management for an electro-thermal renewable–based residential microgrid with energy balance forecasting and demand side management