Dust in planetary nebulae