Synthesis of nanomaterials with desirable morphologies from metal-organic frameworks for various applications