Canadian Pacific mechanics ratify new contract