Mathematical approaches to the study of cellular heterogeneity, treatment design, and immune response in cancer