Characterization of automorphism groups of sporadic simple groups