pH effect on the assembly of metal-organic architectures