The mechanism of rearrangement of 6-halopenicilloates to 2,3-dihydro-1,4-thiazines