An effective computational algorithm for suboptimal singular and/or bang‐bang control II. Applications to nonlinear lumped and distributed systems