The visible and infrared extinction law and the gas-to-dust ratio in the Small Magellanic Cloud