Atomic and electronic structure of an alloyed topological insulator