Surface-mediated light-controlled Friedericksz transition in a nematic liquid crystal cell