Effect of dipole moments on orientation and alignment of a bounded molecule