Variational coarse-graining procedure for dynamic homogenization. (July 2017)