Nontrivial solutions of boundary value problems for second-order functional differential equations