An extension to the modified two-step algorithm for steady-state system optimization and parameter estimation