Absorption of visible light in pure water and seawater