Mixture models for simultaneous classification and reduction of three-way data