On approximating extremals of functionals—II theory and generalizations related to boundary value problems for nonlinear differential equations