Three-way component analysis