Levitation of dust in rf and dc glow discharges