transverse magnetic waves in a resonant cavity