In situ formation of organic-inorganic hybrid nanostructures for photovoltaic applications.