The RICH detector for HERA-B