Network-aware scheduling of aggregated distributed energy resources in energy and ancillary service markets | Synapse