A variational approach of homogenization of heterogeneous materials towards second gradient continua. (July 2021)