BofA’s loan revenue rises as rates increase, but costs climb