Generation and manipulation of atomic-scale structures with the STM