Electrochemical Properties of Self-Assembled Monolayers of Polyaniline: Effects of the Thiol Substituent and Reduced Dimensionality