DNA and RNA ligases: structural variations and shared mechanisms.