Tensor rank and entanglement of pure quantum states