Longitudinal and transverse dielectric constants of KDP-type ferro- and antiferroelectrics