A-type antiferromagnetic order in semiconducting EuMg$_2$Sb$_2$ single crystals