Gram-Schmidt versus Bauer-Rutishauser in alternating least-squares algorithms for three-way data