Type-II band alignment of zinc-blende and wurtzite segments in GaAs nanowires