Propulsion System Control of Ships Sailing in Waves