Soluble polymer-supported synthesis of 5-arylidene thiazolidinones and pyrimidinones using a novel traceless linker strategy.