UBS Second Quarter Profit Beats Estimates