Enabling distributed energy resources to enter the energy market and supporting the evolution to a distribution system operator