Measuring ultraviolet extinction with GALEX in overlapping galaxies