Ferroelectric behavior of KH2PO4 in the critical region