A ring imaging Cherenkov detector, the DELPHI Barrel RICH Prototype Part A: Experimental studies of the detection efficiency and the spatial resolution