Temperature and pressure effects on the structure of liquid water