X-ray and electron spectroscopy investigation of the core–shell nanowires of ZnO:Mn