Density-dependent local-composition mixing rules for cubic equations of state