Structural And Optical Properties Of All-Inorganic And Hybrid Organic-Inorganic Metal (M = Zn, Cd, Hg, Cu) Halides