Nonlocal properties of inhomogeneous structures by linking approach of generalized continuum to atomistic model