On the variational limit of a class of nonlocal functionals related to peridynamics. (8th October 2015)