Added support for complex wavenumbers using AMOS.