Robust kagome electronic structure in the topological quantum magnets XMn6Sn6