Kelvin probe force microscopy and electrostatic force microscopy responses to the polarization in a ferroelectric thin film: Theoretical and experimental investigations