Enhancement of Optoelectronic Properties of Core–Shell Nanowires