Evolution from covalent conjugation to non-covalent interaction in the ubiquitin-like ATG12 system