Performance of the CAPRICE98 balloon-borne gas-RICH detector