Subtractive fabrication of ferroelectric thin films with precisely controlled thickness