Relative velocities of the Pacific, North America and Cocos plates in the middle America region