Preparation of polymers and reactive prepolymers by the aminolysis of acylbis(hexanelactams)