Homogenization theory and applications to filtration through porous media