A novel ensemble model for long-term forecasting of wind and hydro power generation