Effect of oxygen migration on magnetic anisotropy and damping constant in perpendicular Ta/CoFeB/Gd/MgO/Ta multilayers