Infrared absorption of H2O toward massive young stars