Inequalities in Terms of the Gâteaux Derivatives for Convex Functions in Linear Spaces with Applications