Measurement of D0-D¯0 mixing using the ratio of lifetimes for the decays D0→K-π+, K-K+, and π-π+