The effect of solar wind structure on magnetospheric energy supply during solar cycle 20