Competitive photoenolization and photocyclization of 1-phenylalkane-1,2-diones