Charge distributions inK − p interactions and separation of beam and target fragments with energy