A two-stage approach for segmentation of handwritten Bangla word images