Laser-induced diamagnetic anisotropy of coaxial nanowires