In-situ Ligand Transformation for the Development of Luminescent 3D Metal-Organic Frameworks with Diamond-like Topology