Automated segmentation of tissue images for computerized IHC analysis