Robust Image Binarization with Ensembles of Thresholding Algorithms