Automated gland and nuclei segmentation for grading of prostate and breast cancer histopathology | Synapse