Small-angle X-ray diffraction investigation of twinned opal-like structures