Patterning nonanethiol protected gold films by barium atoms