Analysis of greenhouse gas emissions in electricity systems using time-varying carbon intensity