Engineering magnetic materials on the atomic scale (invited)