Weak-field regime of the generalized hybrid metric-Palatini gravity