Pair interactions and hydrogen-bond networks in models of liquid methanol