A virtual vibrational self-consistent-field method for efficient calculation of molecular vibrational partition functions and thermal effects on molecular properties