Numerical enhancements of the microwave resonant cavity method for plasma diagnostics