Chemical mixing and structural phase transitions: the plateau effect and oscillatory zoning near surfaces and interfaces;Chemical mixing and structural phase transitions: the plateau effect and oscillatory zoning near surfaces and interfaces