Different roles of trifluoromethanesulfonyl chloride in the construction of heterocycles fused with β-lactams