Search for CP violation in the decays D0 ---> K- K+ and D0 ---> pi- pi+