A machine learning method for the prediction of ship motion trajectories in real operational conditions