Energy transfer versus charge separation in type-II hybrid organic-inorganic nanocomposites.