Catastrophe theory of symmetry-breaking effect of polar impurity in triglycine sulphate