how many years were the israelites in captivity