Performance of the CAPRICE RICH detector during the 1994 balloon flight