UBS reports $1.1bn net profit in second quarter