Incorporation of ionic impurities in crystals growing from solution. The case of lead ions in potassium chloride crystals