Study of levitating nanoparticles using ultracold neutrons