Extensions of the Hermite-Hadamard inequality for r-preinvex functions on an invex set