Nanowire light scattering variation induced by magnetic alignment