Solidification of particle-reinforced metal-matrix composites