Symmetries, topology and entanglement in quantum systems