Precise determination of the periodicity for Mo/Si and W/C metallic multilayers by electron and x‐ray diffraction