Path-integrated gain of whistler-mode chorus in the magnetosphere by a kappa distribution