Modeling Smart Microgrids for the Developing World with Probabilistic Supply and Demand Inputs