Correlation of second virial coefficients using a modified cubic equation of state