Organic and inorganic nanostructures