Text this: Anisotropic nonlinear optical responses of Ta2NiS5 flake towards ultrafast logic gates and secure all-optical information transmission