Extracting generalized multiphoton ionization cross-sections from nonperturbative time-dependent calculations: An application in positronium