Nigerian troops jailed over arms sales to militants