Which statement accurately describes how the understanding of the Doppler effect is applied to the study of galaxies?