A Novel Aggregation Framework for the Efficient Integration of Distributed Energy Resources in the Smart Grid