On the geometric structure of thermodynamic spaces