Epitaxy, interfacial energy and atomic structure of Au/TiO2 interfaces