An abstract method for nonlinear boundary value problems on noncompact intervals