Real-time simulation of a COGAG naval ship propulsion system