Decoding the Past: Explainable Machine Learning Models for Dating Historical Texts