Surface diffusion near the points corresponding to continuous phase transitions