Hadamard-type inequalities for generalized convex functions