Photoisomerization of .beta.-diketones and .beta.-keto esters