Text this: Dynamic tracking of life cycle carbon emissions in power grids based on a flow network model