Orientational transitions of aromatic molecules adsorbed on platinum electrodes