Optimality conditions and duality for a class of continuous-time generalized fractional programming problems