A phase-field method for alloy solidification with convection