Building blocks for atomically assembled magnetic and electronic artificial lattices