An equation of state for associated systems