Preparation and properties of poly(amide acid) gels