Exact determination of superlattice structure by small-angle x-ray diffraction