Optical Memory Behavior, Metallophilic Luminescence, and Chemical Sensing Ability of Inorganic and Organometallic Complexes: Development of Optoelectronic Materials