Investigating the effect of anion substitutions on the structure of silver-based coordination polymers