Size driven phase transition in ferroelectric particles