Construction of Indole and Benzofuran Systems on the Solid Phase via Palladium-Mediated Cyclizations1