Detecting and segmenting overlapping red blood cells in microscopic images of thin blood smears