Preparation of the niobium (IV) and niobium (III) iodides