A generalized mixing rule for hard-sphere equations of state of Percus–Yevick type