The relationship of energy flow at the magnetopause to geomagnetic activity