Patterning and switching of nano-size ferroelectric memory cells