Direct correlation of crystal structure and optical properties in wurtzite/zinc-blendeGaAs nanowire heterostructures