Application of nonlinear optical effects in measurements of liquid crystalline parameters