Optimal function approximation for empirical look-up-table device models