A practical method for the numerical evaluation of Sommerfeld integrals