Dual integral formulation for determining the acoustic modes of a two-dimensional cavity with a degenerate boundary