Forecasting Energy Demand for Microgrids Over Multiple Horizons