Phase-field simulation of competitive growth of grains in a binary alloy during directional solidification