Text this: Development of an adaptive real-time power systems simulator architecture for smart grid-microgrid applications