Effective medium approach for calculations of optical anisotropy in porous materials