How New Microgrid Technologies Enable Optimal Cooperation Among Distributed Energy Resources