Self-assembly of mechanically interlocked and threaded rings: a HREELS and XPS study of thiol-functionalised catenane and rotaxane molecules on Au(111)