The Tully-Fisher relation at intermediate redshifts