(S)-malate:NAD(P) oxidoreductase