Optimization of an exchange-correlation density functional for water.