Quay Contact Detection for Ships using Motion Sensors and Machine Learning