tonalli: an asexual genetic code to characterise APOGEE-2 stellar spectra. I. Validation with synthetic and solar spectra. | Publicación