Formation Process and Structure of Self-Assembled Monolayer of Thiols in Solution