Spin-wave study of the magnetic excitations in a layered structure with bilinear and biquadratic interlayer exchange