NBA signs 8-year apparel deal with Nike