Mathematical model for the unidirectional solidification of metals: II. Massive molds