On the mechanism of serrated grain boundary formation in Ni-based superalloys