Spectral decoupling allows training transferable neural networks in medical imaging