Functional domains of an NAD(+)-dependent DNA ligase