Reactions of cadmium(II) nitrate with 4-(trimethylammonio)benzenethiolate in the presence of N-donor ligands.