Triggered degradation of poly(ester amide)s via cyclization of pendant functional groups of amino acid monomers