Features and performance of a gravity spectrometer for ultracold neutrons