Electronic structures of ternary iron arsenides AFe2As2 (A = Ba, Ca, or Sr)