Solutal convection induced macrosegregation and the dendrite to composite transition in off-eutectic alloys