On the theory of ferroelectrics of KH2PO4-KDP type