Role of structural flexibility on the physical and chemical properties of metal-supported oxide ultrathin films