Narrowing of mid-infrared laser pulses by two-photon absorption in semiconductor etalons