Automatic Estimation of the Legibility of Binarised Historic Documents for Unsupervised Parameter Tuning