Probing the Seesaw Mechanism and Leptogenesis with the International Linear Collider