Spectra of neutron wave functions in Earth’s gravitational field