Upgraded DIRAC spectrometer at CERN PS for the investigation of ππ and πK atoms