Text this: Statistical model for the description of ferroelectric phase transitions in BaTiO3 and KNbO3