Cosmology of hybrid metric-Palatini f(X)-gravity