A mixing rule for the quadrupolar contribution to the Helmholtz energy