Resonance and ionisation potentials for electrons in cadmium vapor