Luminescence and Relaxation of Energy in Disordered Organic and Inorganic Materials