Growth and characterization of chalcogenide alloy nanowires with controlled spatial composition variation for optoelectronic applications