Ultracold-neutron infrastructure for the gravitational spectrometer GRANIT