Measurement of the decays D0--> pi - pi + and D0-->K-K+