Influence of Color-to-Gray Conversion on the Performance of Document Image Binarization: Toward a Novel Optimization