Three-mode component analysis with crisp or fuzzy partition of units