Defect-Structure-Property Relations In Complex-Oxide Ferroelectric Thin Films