A Gordeyev integral for electrostatic waves in a magnetized plasma with a kappa velocity distribution