Near-Infrared Spectroscopy and Machine Learning for Accurate Dating of Historical Books