Ligand and solvent effects in the formation and self-assembly of a metallosupramolecular cage