Oxidoreductase activity, acting on NAD(P)H