Topologically partitioned dynamic polarizabilities using the theory of atoms in molecules