Ab-initio calculations of the gold-sulfur interaction for alkanethiol monolayers