End-Shape Analysis for Automatic Segmentation of Arabic Handwritten Texts