Quadratic forms, weighted eigenfunctions and boundary value problems for non-linear second order ordinary differential equations