Lewis acid catalyzed regioselective ring opening of azetidines with alcohols and thiols