Background galaxies as reddening probes throughout the Magellanic Clouds