A Capacity Planning Model for Microgrids in Rural India