Magnetic and electronic structures of antiferromagnetic topological material candidate EuMg2Bi2