Study of γ-ray irradiation effect on permanent magnets