Energy storage effect of ferroelectric thin films