Self-supervised learning of cell type specificity from immunohistochemical images