Bipolar optical neural networks using ferroelectric liquid crystal devices