Finding singular points of two-point boundary value problems