Study of the breakdown and resynthesis of polyamic acids in solid phase