Direct comparison of superlattice periods measured with X-ray diffractometry and optical interferometry