Artificial Synapse Based on Vertically Aligned Nanocomposite Ferroelectric Thin Films