Effect of geometric configuration on the electrocaloric properties of nanoscale ferroelectric materials