Modeling and calculation of the capacitance of a planar capacitor containing a ferroelectric thin film