Distribution of magnetic moments in Co/Pt and Co/Pt/Ir/Pt multilayers detected by magnetic x-ray absorption