Calculate the spontaneous ferroelectric polarization across a non-polar to polar structure transition using the Berry Phase method.