A constitutive model for nonhomogeneous nonlocal elastic materials