Measuring the sources of cyclical fluctuations in the G7 economies