The Ext class of an approximately inner automorphism