Ring imaging Cherenkov detector of PHENIX experiment at RHIC