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