A measurement of the Cabibbo-suppressed decays D0 → pi−pi+ and D0 → K−K+