Phase-matched high-order harmonic generation in a gas cell with midinfrared femtosecond pulses