Calculating van der {Waals-London} dispersion spectra and Hamaker coefficients of carbon nanotubes in water from ab initio optical properties