Cooperative trajectory control for synchronizing the movement of two connected and autonomous vehicles separated in a mixed traffic flow