The temperature dependence of the structure of water