green function helmholtz equation 1d