Effect of interlayer trapping and detrapping on the determination of interface state densities on high-k dielectric stacks