GM Agrees to Buy Lender AmeriCredit for $3.5 Billion