Modelling phase changes in the potassium titanyl phosphate system