Tensor Representation of Finite Element Variational Forms