Lorentz resonances and the vertical structure of dusty rings: Analytical and numerical results