Structure and thermal stability of gold nanoclusters: The Au38 case