Thermodynamics of ferroelectrics with the structure of the K-W-bronze