Boeing to buy Spirit AeroSystems in $4.7 billion deal