Genus trace reveals the topological complexity and domain structure of biomolecules