Dust in brown dwarfs and extra-solar planets