All-optical transistor- and diode-action and logic gates based on anisotropic nonlinear responsive liquid crystal