Text this: Modeling of the rural distribution system with applications of microgrids, to evaluate reliability