Mechanism of photoreduction of diethyl benzylidene malonates by NAD(P)H model and comparison with thermal reaction