In-plane lattice spacing oscillatory behaviour during the two-dimensional hetero- and homoepitaxy of metals