Variational methods for the homogenization of periodic heterogeneous media