Calculation of eigenvalues of the Helmholtz equation by an integral equation