Globally Feedback Linearizable Time-Invariant Systems: Optimal Solution for Mayer’s Problem