Effect of clay?water interactions on clay swelling by X-ray diffraction