what geologic process caused gold to form