Identifying preflare spectral features using explainable artificial intelligence