Quantum integral inequalities for convex functions