Study of optical second harmonic generation in ferroelectric liquid crystal