Detection of π+π- atoms with the DIRAC spectrometer at CERN