Search for CP Violation in the Decays D0→K-K+ and D0→π-π+