A 2.5D boundary element formulation for modeling damped waves in arbitrary cross-section waveguides and cavities