Increasing renewables reliability with demand forecasting and battery storage