Effects of lateral constraints on the morphology evolution and solute diffusion during solidification in a binary alloy