Band-offset effect on localization of carriers and p-type doping of InAs/GaAs core–shell nanowires