Topological optical differentiator