Mechanisms of pyroelectric coefficients in intrinsic mode and electric field enhancement mode for ferroelectrics