Synthesis, structure, and stability of metal-organic frameworks