German company pips Chinese firm to win high-speed rail project in Egypt