what is the relationship between stellar spectra, absorption lines and elemental composition of stars