Flexible structure and solid-state transformation in silver(I) coordination polymers