Hermite-Hadamard Type Inequalities via the Montgomery Identity