Topological spintronics and magnetoelectronics