Multilayered thresholding-based blood vessel segmentation for screening of diabetic retinopathy