Homogenization of Dissipative Photonic Crystals