A Spectral-Element Approach for the Eikonal Equation