Model intermolecular potentials and virial coefficients determined from the speed of sound