A Set of Forecasting Methods to Predict Solar Irradiance and Wind Speed for Different Horizons