Transfer learning for the generalization of artificial intelligence in breast cancer detection: a case-control study