Study of the Structural and Electronic Properties of Some Organic Inorganic Cd and Hg Based Hybrid Materials