Conformations of an amino /amido /thiolate self-assembled layer on gold in air and in electrolytes