Ab initio dynamic multipole polarizabilities and hyperpolarizabilities of H2O and the long-range interaction coefficients for its dimer