NAD(P)-dependent enzymes. I. Conserved stereochemistry of cofactor binding