Archetypal analysis of galaxy spectra