Boundary value problems for a class of nonlinear second-order differential equations