Crystal Structure and the Paraelectric-to-Ferroelectric Phase Transition of Nanoscale BaTiO