Processing of ferroelectric polymers for microelectronics: from morphological analysis to functional devices