Invensys in shock £1.7bn rail sale to Germans