Two-body hypercharge-exchange reactions in K−p and π+p interactions at 10 and 16 GeV/c