Antiproton-proton annihilation into kaons and pions in the momentum region 3 to 4 GeV/c