Atomic structure of surfactant monolayers and its role in epitaxial growth