First integrals and turning points for wave propagation in planarly-stratified media