helmholtz equation derivation