Simulation of the Faraday effect for the core–shell magnetic nanowire