Multiple resistive switching in core–shell ZnO nanowires exhibiting tunable surface states