Nonthermal leptogenesis with almost degenerate superheavy neutrinos