Real-space study of the growth of magnesium on ruthenium