Determination of the lattice constants of epitaxial layers