UBS posts $29bn profit, Credit Suisse $10bn loss amid merger