Electronic structure and layer-dependent magnetic order of a new high-mobility layered antiferromagnet KMnBi