Operation, optimisation, and performance of the DELPHI RICH detectors