Shape Optimization by the Homogenization Method