Ferroelectric phase transitions in ultrathin films of BaTiO3.