UBS to buy Credit Suisse for $3.2 billion