X-ray-scattering information obtained from near-field speckle