Sharp High-Frequency Estimates for the Helmholtz Equation and Applications to Boundary Integral Equations