The topology of crystal structures: Invariants