The effect of finite primary deformations on harmonic waves in layered elastic media