Equation of state for compressed liquids from surface tension