Efficient model predictive control fornonlinear systems via function approximation techniques