A molecular gate: control of free intramolecular rotation by application of an external signal