The influence of hydrogen bonding on the nonlinear optical properties of a semiorganic material NH4B[D-(+)-C4H4O5]2·H2O: a theoretical perspective.