An inversion procedure for coupled-channel scattering: determining the deuteron-nucleus tensor interaction