Spectral shift for relative Schatten class perturbations