A mild and efficient method for the preparation of n-tosyl amides and lactams