Approximating piecewise nonlinearities in dynamic systems with sigmoid functions: Advantages and limitations