Hermite-Hadamard type inequalities for fractional integrals