Electromagnetic phenomena in heterogeneous media: Effective properties and local behavior