Finite difference boundary value method for solving one-dimensional eigenvalue equations