Barium titanate at the nanoscale: controlled synthesis and dielectric and ferroelectric properties.