Application of the method of direct separation of motions to the parametric stabilization of an elastic wire