Nonhomogeneous nonlocal elasticity: a finite element approach