A monte carlo procedure for the study of solvent effects on quantum molecular degrees of freedom