Structural equations for Killing tensors of arbitrary rank