Optimal Passive Sonar Signal Processing Using the Waveguide Invariant