On the Cauchy problem for the Korteweg–de Vries equation with steplike finite-gap initial data: I. Schwartz-type perturbations