Computational Homogenization of Materials with Microstructures based on Incremental Variational Formulations