Iterative model and trajectory refinement for attitude and shape control of a dumbbell spacecraft