Absorption of slow negative kaons in hydrogen and deuterium