Capillary filtering of particles during dip coating