Voltage-controlled nonlinear optical effects in a twisted nematic liquid crystal cell bounded by dichroic polarizers