Integral inequalities for convex functions and applications for divergence measures