Electronic structure of $A$Co$_2$As$_2$ ($A=$ Ca, Sr, Ba, Eu) studied using angle-resolved photoemission spectroscopy and theoretical calculations