A sensitive optical grating method for flash photolysis: application to the CIS-trans photochemical isomerization of azo dyes