Controllability techniques for the Helmholtz equation with spectral elements