Estimation of Jensen’s gap through an integral identity with applications to divergences