Registry-Dependent Potential for Interfaces of Gold with Graphitic Systems