U.S., South Korea agree on automotive terms in free-trade deal