Collisional–radiative modelling of a helium microwave plasma in a resonant cavity