Size and shape effects on polarization reversal of nanoscale BaTiO3