Ferroelectricity in BaTiO3 nanoscopic structures