Fabrication of organic-inorganic nanocomposites by colloidal processing