Existence and uniqueness of the solution in the frequency domain for the reflection-transmission problem in a viscoelastic layer