Structure formation, melting, and optical properties of gold/DNA nanocomposites: Effects of relaxation time