Space-charge effects in ultrafast electron diffraction patterns from single crystals