Bank of America strikes upbeat tone on lending, profitability