An inverse transmission problem for the Helmholtz equation