Modeling of microsegregation under rapid solidification conditions