Effect of solvents on the electrochemistry of olefins and aromatic molecules