A theory for the interaction of particles with a solidifying front