Generating femtosecond pulses in the mid-IR and THz ranges in GaSe1 − xTex crystals