Solid phase synthesis of mixture-based acyclic and heterocyclic small molecule combinatorial libraries from resin-bound polyamides.