A model-independent maximum-entropy method for the inversion of small-angle X-ray diffraction patterns