Microstructural Characterization of Ferroelectric Thin Films for Non-Volatile Memory Applications