Ferroelectric phase transition in small crystals of BaTiO3