Modifications of the optical and electrical properties of thin gold films as a function of structure during deposition