Dispersive Quasi-Normal Mode (DQNM) Expansion in Open and Periodic Nanophotonic Structures