Reactions of carbenes and photoexcited ketones with phosphorus compounds