Spin dynamics in cerium ternary stannides and antimonides