Generalized ƒ(R,Φ, X) Gravity and the Late-Time Cosmic Acceleration