Role of solar wind dynamic pressure in driving ionospheric Joule heating