Analysis of trigonal-prismatic and octahedral preferences in hexaamine cage complexes