How to compute the elementary divisors of the tensor product of two matrices