Complexity-driven properties of the intermetallic compounds Gd₁₁₇Co₅₆Sn₁₁₂ and Ln₃₀Ru₄Sn₃₁ (Ln = Gd and Tb)