Integration of Distributed Energy Resources in Power Systems