Design of a RICH detector for the HERA-B experiment