Modal expansions in dispersive material systems with application to quantum optics and topological photonics