General equation of state for the pressure and temperature-induced transition in the ferroelectric triglycine selenate