Theory of metamorphic segregation and related processes