Inclusive production of charged pions in K−p interactions at 32 GeV/c