Recursive Stiffness Matrix Method for Wave Propagation in Stratified Media