Bank of America profit more than halved in second quarter