A method for automatic segmentation of nuclei in phase-contrast images based on intensity, convexity and texture