Origin of Nonmonotonic Dependence of the First Electronic Hyperpolarizability of Polymethine Compounds on the Donor-Acceptor Strength of Their End Groups