Collective description of magnetic properties of even-even nuclei