Characterization of metal, semiconductor, and metal-semiconductor core–shell nanostructures