Refraction corrections for both electron and X-ray diffractions in Mo/Si multilayers