Molecular engineering of the polarity and interactions of molecular electronic switches.