Geomagnetic activity and the solar wind during the Maunder Minimum