Modeling of macrosegregation caused by volumetric deformation in a coherent mushy zone