Applications of Real-Time Digital Simulation Technologies in Distributed Energy Resources/Microgrid