The influence of defects on the properties of solids near phase transition points