Stereodivergent Baylis-Hillman reaction of a chiral acryloyl imide exploiting ion-chelation effect: mechanistic insight on the rearrangement of trichloroacetimidates of the Baylis-Hillman adducts to the trichloroacetamides