Gluon excitations of the static quark potential and the hybrid quarkonium spectrum