Bank of America settles suits over bad mortgages