Distributed Energy Resources in Microgrids