Local Convergence of the Alternating Least Squares Algorithm for Canonical Tensor Approximation