Why foreign buyers are snapping up US companies