Molecular Properties from Conformational Ensembles. 1. Dipole Moments of Molecules with Multiple Internal Rotations