Nanosize confinement induced enhancement of spontaneous polarization in a ferroelectric nanowire