First direct measurement of the intrinsic dipole moment in pear-shaped thorium isotopes