An improved carbon emission flow method for the power grid with prosumers | Synapse