A symplectic indirect approach for a class of nonlinear optimal control problems of differential‐algebraic systems