The HUS solar flare and cosmic gamma-ray burst detector aboard the ULYSSES spacecraft