Self-supervised Learning for Cancer Pathology Foundation Models