Phase-field modeling of rapid solidification