Hermite–Hadamard’s type inequalities for convex functions of selfadjoint operators in Hilbert spaces