Photochemical redox transformations of dimers of NAD+ and N'-methylnicotinamide.