Measurements of the strong-interaction widths of the kaonic 3He and 4He 2p levels