Solar Irradiance Forecasting Using Markov Switching Model for Energy Management of Remote Microgrids