Ferroelectric Thin Films for Microelectromechanical Device Applications