Tip-based Creation and Functionalization of Nanoscale Surface Patterns