Enzyme Nicotinamide Cofactor Specificity Reversal Guided by Automated Structural Analysis and Library Design.