Decomposition of elasticity tensors and tensors that are structurally invariant in three dimensions