Sensing anisotropic stresses with ferromagnetic nanowires