Particle identification algorithms for the DELPHI RICH detector