Seismology of contracting and expanding coronal loops using damping of kink oscillations by mode coupling