Localization of light: Dual symmetry between absorption and amplification