Ultraviolet spectroscopy of the dwarf nova U Geminorum