Spatial-controlled etching of coordination polymers