Microsegregation and crystal perfection in metals