Finite element and b-spline methods for one-dimensional non-local elasticity