endo-Mode cyclizations of vinylogous N-acyliminium ions as a route to the synthesis of condensed thiazolidines