Stereodivergent Baylis-Hillman reaction of a chiral acryloyl imide and ethyl glyoxalate exploiting ion-chelating effect allows mechanistic insight on the rearrangement of trichloroacetimidates of the Baylis-Hillman adducts to trichloroacetamides